﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Smart.Model
{
    public class NetMessageDispatcher : IMessageDispatcher
    {
        public void Dispatch(Session session, int msgid, object message)
        {
            if(!session.IsDisposed && message is Google.Protobuf.IMessage googlemsg)
            {
                Net.HandleNetMsg(msgid, googlemsg);
            }
        }
    }
}